//
//  GZIMListViewController.swift
//  GZMarathon
//
//  Created by apple on 2021/11/8.
//

import UIKit

class GZIMListViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let webVc: WebLoadingViewController = WebLoadingViewController()
        webVc.filePath  = GZCurrentUser.shared.currentUser!.im_url + "?token=" + GZCurrentUser.shared.currentUser!.token
        self.navigationController?.pushViewController(webVc, animated: true)

//        self.title = "视频通话"
//
//        self.setDisplayConversationTypes([RCConversationType.ConversationType_PRIVATE.rawValue, RCConversationType.ConversationType_GROUP.rawValue,RCConversationType.ConversationType_DISCUSSION.rawValue])
//
//        view.backgroundColor = UIColor.init("0xf6f6f6")
//        self.conversationListTableView.separatorStyle = UITableViewCell.SeparatorStyle.none
//
//
//        let tokenArr = ["GIB9wSQwkiww04YNDGsexaqx9Cqb32zyRyIdS9fx2FST+ELwl/O35w==@xlgw.cn.rongnav.com;xlgw.cn.rongcfg.com",
//                        "GIB9wSQwkiycC8lV+ln836qx9Cqb32zy8sMEtnJeDy2T+ELwl/O35w==@xlgw.cn.rongnav.com;xlgw.cn.rongcfg.com",
//                        "GIB9wSQwkix2RwHdRBIGW6qx9Cqb32zy4JX3mG7aaSST+ELwl/O35w==@xlgw.cn.rongnav.com;xlgw.cn.rongcfg.com"]
//        var index = 0
//        if GZCurrentUser.shared.currentUser!.account_username == "13999999991" {
//            index = 0
//        }else if GZCurrentUser.shared.currentUser!.account_username == "13999999992" {
//            index = 1
//        }else{
//            index = 2
//        }
//
//        RCIM.shared().connect(withToken: tokenArr[index]) { Dberr in
//        } success: { success in
//            print("链接成功")
//        } error: { err in
//
//        }
    }


}
